package com.itbaizhan.springsecuritydemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itbaizhan.springsecuritydemo.domain.Permission;
import com.itbaizhan.springsecuritydemo.domain.Users;

import java.util.List;

//使用myBatisPlus
public interface UserMapper extends BaseMapper<Users> {

    //根据用户名查询权限  登录后知道用户名
    List<Permission> findpermissionByUsername(String username);
}
